﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body>

  <%@ include file="/WEB-INF/include/header.jsp"%>
  
  <%@ include file="/WEB-INF/include/menu.jsp"%>

  <div class="container main-content">

    <div class="panel panel-default x-panel x-panel-layout">

      <div class="panel-heading">
        <ol class="breadcrumb">
          <li><a href="${ctx.host}/content">内容管理</a></li>
          <li class="active">页面数据</li>
        </ol>
      </div>

      <div class="panel-body">

        <div class="col-xs-2 x-panel-layout-left no-horizontal-padding">
          <%@ include file="/WEB-INF/include/submenu.jsp"%>
        </div>

        <div class="col-xs-10 x-panel-layout-right">

          <div class="x-breadcrumb-wrapper">
            <div class="x-breadcrumb clearfix">
              <h2><i class="glyphicon glyphicon-fire"></i>&nbsp;&nbsp;<span>页面数据&nbsp;-&nbsp;页面详情</span></h2>
            </div>
          </div>
          
          <div class="x-breadcrumb-wrapper ">
           <ul class="nav nav-pills x-breadcrumb-nav ajax-tab" data-content="#basic-content">
              <li class="pull-left active">
                <a id="profile" href="${ctx.host}/webpages/${webpage.id}" data-toggle="tab" data-target="#site-profile">基本信息</a>
              </li>           
           </ul>
            
             <div id="basic-content" class="tab-content ajax-tab-content">
            
              <div class="tab-pane fade active in" id="site-profile" style="min-height: 100px;">
            
                <div class="form-horizontal">
                  
                    <div class="form-group">
                  
                     <label class="control-label col-xs-2">页面名称：</label>
                     <div class="col-xs-6 pull-left">
                       <p class="form-control-static">${webpage.name}</p>
                     </div>
                  </div>
            
                  <div class="form-group">
                    <label class="control-label col-xs-2">页面别名：</label>
                    <div class="col-xs-6 pull-left">
                      <p class="form-control-static">${webpage.alias}</p>
                    </div>
                  </div>                    
            
                  <div class="form-group">
                    <label class="control-label col-xs-2">创建时间：</label>
                    <div class="col-xs-6 pull-left">
                      <p class="form-control-static">
                       <fmt:formatDate value="${webpage.createTime}" pattern="yyyy-MM-dd HH:mm:ss" />
                      </p>
                    </div>
                  </div>
               </div>
             </div>
            </div>
            <div class="x-breadcrumb-wrapper">
              <ul class="nav nav-pills x-breadcrumb-nav ajax-tab" data-content="#webpage-links-content" data-operation="#webpage-operation">
                <li class="pull-left">
                  <a id="link" href="${ctx.host}/webpages/${webpage.id}/links" data-toggle="tab" data-toggle="tab" data-target="#webpage-links">链接列表</a>
                </li>
                <li class="pull-left">
                  <a id="brief" href="${ctx.host}/webpages/${webpage.id}/briefs" data-toggle="tab" data-target="#webpage-briefs">文案列表</a>
                </li>
              </ul>
                            
           </div>
           <div id="webpage-links-content" class="tab-content ajax-tab-content">
           </div>
         </div>
        </div>
      </div>
    </div>
  </div>

  <%@ include file="/WEB-INF/include/script.jsp"%>
  
  <d:resource root="${ctx.resource}/build" type="script" src="js/page/content/webpage/webpage-view.js">
    <script type="text/javascript">
      require(['page/content/webpage/webpage-view'], function(page) {
          page.init();
      })
    </script>
  </d:resource>
  
</body>

</html>